package com.bingquan.company.mapstruct;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ListTest {

    public static void main(String[] args) {
        List<Person> list = new ArrayList<>();

        Person p1 = new Person(1l, "name1", "33@quu.com", new Date(), new User(10));
        Person p2 = new Person(2l, "name2", "22@quu.com", new Date(), new User(22));
        Person p3 = null;
        Person p4 = null;

        list.add(p1);
        list.add(p2);
        list.add(p3);
        list.add(p4);

        /**
         * list.size =4 但是集合打开只有两个元素
         */
        System.out.println("size= " + list.size());
    }
}
